package com.ccys.db.mapper;

import com.ccys.db.dto.userManagement.TblMemberLongTermDTO;
import com.ccys.db.entity.TblMemberLongTerm;
import com.ccys.db.vo.doctor.consultStage.GetLongTermVo;
import com.ccys.db.vo.userManagement.TblMemberLongTermWebVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
* Created by Mybatis Generator on 2023/12/18
*/
public interface TblMemberLongTermMapper extends Mapper<TblMemberLongTerm>, MySqlMapper<TblMemberLongTerm> {
    List<TblMemberLongTermWebVO> listObjectsCms(TblMemberLongTermDTO dto);


    List<GetLongTermVo> getLongTerm(String memberId);

    void deleteByMemberIdAndByDiagnosisIdOrByProductId(@Param("memberId") String memberId,@Param("diagnosisId") String diagnosisId,@Param("productId") String productId);

    List<TblMemberLongTerm> findByMemberIdAndByDiagnosisIdOrByProductId(@Param("memberId") String memberId,@Param("diagnosisId") String diagnosisId,@Param("productId") String productId);
}
